package cn.tedu.csmall.stock.webapi.error;

import cn.tedu.csmall.commons.pojo.stock.dto.StockReduceCountDTO;
import cn.tedu.csmall.commons.restful.JsonResult;
import cn.tedu.csmall.commons.restful.ResponseCode;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class StockFallbackError {
    public static JsonResult fallbackError(StockReduceCountDTO stockReduceCountDTO){
        log.error("一个请求，被降级了");
        return JsonResult.failed(ResponseCode.BAD_REQUEST,"服务器出现异常，请求被降级");
    }
}
